timakaup = int(input("Tímakaup: "))
timar = int(input("Fjöldi tíma: "))
bonus = int(input("Bónusupphæð: "))
bonusvidmid = int(input("Bónus viðmiðun: "))

heildarlaun = timar * timakaup
if bonusvidmid < timar:
	heildarlaun += bonus
print("Heildarlaun: " + str(heildarlaun))
